#ifndef STUDENT_H
#define STUDENT_H
#include "person.h"
#include <QObject>
#include "iostream"
#include "sstream"
using namespace std;
using std::ios;
using std::ostringstream;
class student : public person
{
    Q_OBJECT
public:
    explicit student(QObject *parent = nullptr);
    //    student():Person(){       ///这里的构造函数歧义，可能出错*********************************************
    //        type="type";           ///**********************************************************************
    //        teach="teach";          ///*******************************************************************
    //        }
        student(QString nmb,QString nm,bool sx,int ae,QString tp,QString cge,QString th,QString tm,int pro=0,int pa=0);
        QString findtype();             ///查询学生类别
        void settype(QString tp);
        QString findteach();              ///查询导师
        void setteach(QString th);          ///修改导师
        void save(ostringstream& os);
    private:
        QString type;
        QString teach;
signals:

};

#endif // STUDENT_H
